// MyExecRefsDll.cpp
#include "Including.h"



using namespace std;

//The threads that will be used
SDL_Thread *threadA = NULL;
SDL_Thread *threadB = NULL;

int main(int argc, char *argv[])
{
	if(SDLFuncs::MySDLFuncs::Init() == false)
	{
		cout << "Initialisation failed" << endl;
		return 1;
	}

	//Create and run the threads
	//threadA = SDL_CreateThread( SDLFuncs::MySDLFuncs::Input, NULL );
	//threadB = SDL_CreateThread( SDLFuncs::MySDLFuncs::Camera, NULL );

	//Wait for the threads to finish
	//SDL_WaitThread( threadA, NULL );
	//SDL_WaitThread( threadB, NULL );

	//Game Loop
	do{

		SDLFuncs::MySDLFuncs::Camera(NULL);
		SDLFuncs::MySDLFuncs::UpdateSceneElements(NULL);
		SDLFuncs::MySDLFuncs::RenderScene(NULL);
		Bullet::MyBullet::motionPhysics(NULL);
		SDLFuncs::MySDLFuncs::Input(NULL);

		SDL_GL_SwapBuffers();
	
	}while(!SDLFuncs::MySDLFuncs::QuitSDL());

	SDLFuncs::MySDLFuncs::CleanUp();
	return 0;

}
